from django.contrib import admin
from django.urls import path, include
# from django.conf.urls import url, include
from . import views


urlpatterns = [
    path('goods/api/', views.GoodViewSet.as_view({'post': 'create', 'get': 'list'})),
    path('goods/api/<int:pk>/', views.GoodViewSet.as_view({'put': 'update', 'get': 'retrieve', 'delete': 'destroy'})),
    path('category/api/', views.GoodCategoryViewSet.as_view({'post': 'create', 'get': 'list'})),
    path('category/api/<int:pk>/', views.GoodCategoryViewSet.as_view({'put': 'update', 'get': 'retrieve', 'delete': 'destroy'})),
]